// 基础颜色渲染着色器程序
export default [
    `
        attribute vec3 position;
        attribute vec4 color;
        varying vec4 vColor;
        uniform mat4 modelMatrix;
        uniform mat4 viewMatrix;
        uniform mat4 projectionMatrix;
        
        void main() {
            gl_Position = projectionMatrix * viewMatrix * modelMatrix * vec4(position, 1.0);
            vColor = color;
        }
    `,
    `
        precision mediump float;
        varying vec4 vColor;
        
        void main() {
            gl_FragColor = vColor;
        }
    `
];
